Skip to contentSkip to conversation

CS:GO segfaults in llvm

Bug 92944 [email protected] 1 participant 17 messages Nov 13, 2015 – Jan 25, 2016

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=92944

Bug ID: 92944
Summary: [Fiji/LLVM/RadeonSI] CS:GO segfaults in llvm
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Created attachment 119654
--> https://bugs.freedesktop.org/attachment.cgi?id=119654&action=edit
backtrace

Every time CS:GO has finished loading a level and is about to draw 3D graphics it crashes with this error before any 3D graphics is displayed. Attaching the backtrace.

Hardware:
Radeon Fury
Intel 2500k

Software:
64-bit Ubuntu 15.10
LLVM 3.8~svn252698-0~padoka0
Mesa 11.1~git151113012700.2de2e17~padoka0
Linux both 4.3.0 and agd5f/powerplay tested

Other games work fine, Borderlands, Civ 5, Shadow of Mordor, Metro: Last Light (old version).

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92944

--- Comment #2 from Michel Dänzer <[email protected]> --- Might be a duplicate of bug 92709.

If http://lists.freedesktop.org/archives/mesa-dev/2015-November/100742.html
doesn't help, please run the game with the environment variable R600_DEBUG=vs,gs,ps and attach its stderr output.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92944

--- Comment #3 from Ernst Sjöstrand <[email protected]> --- Created attachment 119989
--> https://bugs.freedesktop.org/attachment.cgi?id=119989&action=edit
cs-go-llvm.txt

Oh, haven't tried the patch yet. Here's the log with R600_DEBUG=vs,gs,ps anyway.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92944

--- Comment #4 from Bogar Boris <[email protected]> ---
Created attachment 120065
--> https://bugs.freedesktop.org/attachment.cgi?id=120065&action=edit
cs_go console log with R600_DEBUG=vs,gs,ps with patched LLVM-git and mesa-svn

Hi, i tried to recompile llvm-git and mesa-svn including both the patch that i found in Michel Dänzer message. The attachment contain the last two mesa debug dump from the console. Honestly I don't know if you need the full log from the game start to the crash, but the full log is over 3Mb. I hope this can help, and this is the dmesg generated from the crash.

[nov23 19:01] csgo_linux[8027]: segfault at c ip 00000000f17cb7ed sp 00000000d3d56a0c error 4 in libLLVM-3.8svn.so[f11b6000+29d3000]

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92944

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |[email protected],
                   |                            |[email protected],
                   |                            |[email protected]

--- Comment #5 from Michel Dänzer <[email protected]> --- Doesn't look related to bug 92709. I was able to reproduce the crash with llc and the LLVM IR from the attached debugging output. Tom/Matt/Nicolai could any of you take a look?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92944

--- Comment #6 from Michel Dänzer <[email protected]> --- (In reply to Bogar Boris from comment #1)

Quoted 2 lines

I got the same trouble on arch with mesa-git and llvm-svn. Working fine with the stable release.

Can you first isolate whether the crash was introduced by a change in Mesa or LLVM, and then bisect that component?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92944

--- Comment #7 from Bogar Boris <[email protected]> --- (In reply to Michel Dänzer from comment #6)

Quoted 6 lines

(In reply to Bogar Boris from comment #1)

Quoted 2 lines

I got the same trouble on arch with mesa-git and llvm-svn. Working fine with the stable release.

Can you first isolate whether the crash was introduced by a change in Mesa or LLVM, and then bisect that component?

I tried but i can't. I looked on my package manager log and i see that i discover the bug around 2015/10/09. So i tried to compiled an old revision of mesa but around that date i found that the mesa fail to configure/compile because of some new virgl driver. And the compilation fail for an huge gap of commit, so, finding out this is beyond my knowledge.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92944

--- Comment #8 from Ernst Sjöstrand <[email protected]> ---
With my current git snapshots of everything I can actually load a game and play one round if I set shader detail to Low, everything else can be set to max it seems.
However it crashes a bit later when loading the next round. Haven't captured the tracebacks from that yet...

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92944

--- Comment #9 from Michel Dänzer <[email protected]> --- (In reply to Bogar Boris from comment #7)

Quoted 2 lines

So i tried to compiled an old revision of mesa but around that date i found that the mesa fail to configure/compile because of some new virgl driver.

Can't you just disable the virgl driver build? If that doesn't work either, please attach the failure output from configure / make.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92944

--- Comment #10 from Tobias Droste <[email protected]> --- It's not a mesa change that caused this.

I have the same problem with Hawaii. The first time I saw this I tried an older version of mesa which worked a day before and the problem was still there.

I can't say which change in llvm caused this, because I'm only building mesa on my own and receive a prebuilt llvm copy from a repository.

I can upload a backtrace as well if you want, but the segfault I see also happens in SlotIndex::getIndex().

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92944

--- Comment #11 from Tobias Droste <[email protected]> ---
The change in LLVM happend somewhere between November 9th (known good) and yesterday (known bad).

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92944

--- Comment #12 from Tobias Droste <[email protected]> --- Okaaay... sorry for the noise, I don't have the _same_ problem.

My problem is not due to a change in either mesa or llvm but cs go as it seems. I switched to a llvm r251632 (October 29th) and mesa c6b24448b578c4a8ab031923df3ef1e2d865d5bb (also October 29th) and my problems is still there.

I'm opening a new bug.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92944

Tobias Droste <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

           See Also|                            |https://bugs.freedesktop.or
                   |                            |g/show_bug.cgi?id=93360
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92944

Ernst Sjöstrand <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Blocks|                            |77449
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92944

--- Comment #13 from Ernst Sj�strand <[email protected]> --- Couldn't reproduce this today. Could set shaders to very high, change graphics settings on the fly (though slow), run multiple matches in a row etc... Latest padoka-ppa + drm-next-4.6-wip kernel.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92944

Nicolai H�hnle <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #14 from Nicolai H�hnle <[email protected]> --- Indeed, the offending shaders no longer crash. Not sure which of the recent LLVM changes is responsible, let's just be happy it works :)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel